//
//  MyImageView.m
//  04UI-HomeWork
//
//  Created by 冀永金 on 16/7/19.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "MyImageView.h"

@implementation MyImageView

- (instancetype)initWithFrame:(CGRect)frame image:(UIImage *)image {
    self = [super initWithFrame:frame];
    if (self) {
        self.image = image;
    }
    return self;
}
+ (instancetype)imageWithFrame:(CGRect)frame image:(UIImage *)image {
    return [[MyImageView alloc]initWithFrame:frame image:image];
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
